package com.fxp.project.jiuselu.web.models.goods.service.impl;

import com.fxp.project.jiuselu.web.models.goods.entity.JslBanner;
import com.fxp.project.jiuselu.web.models.goods.mapper.JslBannerMapper;
import com.fxp.project.jiuselu.web.models.goods.service.IJslBannerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * Banner表 服务实现类
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-11-01
 */
@Service
public class JslBannerServiceImpl extends ServiceImpl<JslBannerMapper, JslBanner> implements IJslBannerService {

    @Autowired
    JslBannerMapper jslBannerMapper;

    /**
     * selectBannerListByPlatform: 通过当前的平台类型获取Banner信息<br/>
     *
     * @param platform
     * @return
     * @author Kai.Wang
     * @date 2021/11/1 16:43
     */
    @Override
    public List<JslBanner> selectBannerListByPlatform(Integer platform) {
        return jslBannerMapper.selectBannerListByPlatform(platform);
    }
}
